#!/bin/bash
# download-geolite.sh
URL="https://github.com/P3GLEG/GeoLite2-Database/raw/main/GeoLite2-City.mmdb"
OUTPUT="GeoLite2-City.mmdb"

if [ ! -f "$OUTPUT" ]; then
    echo "📥 下载 GeoLite2-City.mmdb..."
    curl -L -o "$OUTPUT" "$URL"
    echo "✅ 下载完成"
else
    echo "✅ GeoLite2-City.mmdb 已存在"
fi